package com.example.demo.designpattern设计模式.behavioral行为型.chainofresponsibility责任链模式.二次手撕;

public abstract class Handler {

    protected Handler successor = null;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handler();
}
